package com.zj;

public class TestEdit {
    public static void main(String[] args) {
        String word1="dt";
        String word2="at";
        int distance=EditDistance.calculate(word1,word2);
        String str=DeleteSameWord.findMaxWord(word1,word2);

        String result1=word1.replaceFirst(str,"");
        String result2=word2.replaceFirst(str,"");
        System.out.println(result1+"    "+result2);
        System.out.println(distance);
    }
}
